﻿#pragma once
#include "afxdialogex.h"

#include <vector>

// CRoughDlg 对话框

class CRoughDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CRoughDlg)

public:
	CRoughDlg(int nId = -1, double rough = 0, CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CRoughDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_ROUGH_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangePipetypeCombo();
	int nSelect;
	double rough;
};


// CLocalDlg 对话框

class CLocalDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CLocalDlg)

public:
	CLocalDlg(std::vector<int> _localIndexList, std::vector<int> _localNumList, std::vector<double> _localKlist, CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CLocalDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_LOCAL_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangeLocalnameCombo();
	afx_msg void OnBnClickedAddButton();
	
	std::vector<int> localIndexList;
	std::vector<int> localNumList;
	std::vector<double> localKList;
	double kSum;
	afx_msg void OnLvnItemchangedLocalList(NMHDR *pNMHDR, LRESULT *pResult);
private:
	int nSelect;
public:
	afx_msg void OnBnClickedModifyButton();
	afx_msg void OnBnClickedDeleteButton();
};


// CInsulDlg 对话框

class CInsulDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CInsulDlg)

public:
	CInsulDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CInsulDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_INSUL_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	int nId;
	CString sName;
private:
	std::vector<int> m_idList;
public:
	afx_msg void OnLvnItemchangedInsulList(NMHDR *pNMHDR, LRESULT *pResult);
};


// CBlacknessDlg 对话框

class CBlacknessDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CBlacknessDlg)

public:
	CBlacknessDlg(int nId = -1, double blackness = 0, CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CBlacknessDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_BLACKNESS_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	int nSelect;
	double blackness;
	afx_msg void OnCbnSelchangeShellCombo();
};


// CEnvironmentDlg 对话框

class CEnvironmentDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CEnvironmentDlg)

public:
	CEnvironmentDlg(CString sCity = NULL, int nPlace = 0, CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CEnvironmentDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_ENVIRONMENT_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	CString sCity;
	int nPlace;
	afx_msg void OnCbnSelchangeProvinceCombo();
	afx_msg void OnBnClickedOk();
};


// CPmpDlg 对话框

class CPmpDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CPmpDlg)

public:
	CPmpDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CPmpDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_PMP_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangeMcCombo();
	afx_msg void OnCbnSelchangePcCombo();
	afx_msg void OnBnClickedOk();
	int nId;
private:
	std::vector<int> m_nPmpIdList;
};


// CWeldingDlg 对话框

class CWeldingDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CWeldingDlg)

public:
	CWeldingDlg(int nWelding = 0, double rtPercent = 0, CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CWeldingDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_WELDING_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	int nWeldingType;
	double RTPercent;
};